<?php

class cView
{
	private $sView;
	private $oView;

	public function __construct($sView)
	{
		$sView = trim(strip_tags($sView));
		$this->sView = $sView;

		if(!$this->sView)
		{
			$this->sView = STORK_DEFAULT_VIEW;
		}

		$sView = $this->sView;
		
		if($sView)
		{
			$this->oView = new $sView();
			$this->oView->showView();
		}
		else
		{
			throw new cException($sView, STORK_VIEW_NOT_FOUND, STORK_STATE_ERROR);
		}
	}
}

